import request from './request'

const axiosText = () => request({url:"carserver/user/test",method:"GET"});
const axiosRegister = (params) => request({url:"carserver/user/register",method:"GET",params:params});
const axiosLogin = (params) => request({url:"carserver/user/login",method:"GET",params:params});
const axiosChangePassword = (params) => request({url:"carserver/user/c_pass",method:"GET",params:params});
const axiosAllCars = () => request({url:"carserver/car_info/all_car",method:"GET"});
const axiosNewCar = (params) => request({url:"carserver/car_info/new_car",method:"GET",params:params});
const axiosUserCar = (params) => request({url:"carserver/car_info/user_car",method:"GET",params:params});
const axiosDeleteCar = (params) => request({url:"carserver/car_info/del_car",method:"POST",params:params});
const axiosGetUserInfo = (params) => request({url:"carserver/user_info/get_info",method:"GET",params:params});
const axiosSetUserInfo = (params) => request({url:"carserver/user_info/set_info",method:"GET",params:params});
const axiosChangeCollect = (params) => request({url:"carserver/user_info/c_col",method:"GET",params:params});

export {
    axiosText,
    axiosRegister,
    axiosLogin,
    axiosChangePassword,
    axiosAllCars,
    axiosNewCar,
    axiosUserCar,
    axiosDeleteCar,
    axiosGetUserInfo,
    axiosSetUserInfo,
    axiosChangeCollect
}
